import { defineStore } from 'pinia'
import { ref, computed } from 'vue'

export const useUserStore = defineStore('user', () => {
  // 定义 state
  const token = ref<string | null>(null)

  return { token }
},{
  unistorage: {
    key:'cp-patient-user',
    paths:['token']
  }
})